#输出
print("hello world\n")

#转义符\ ''与转义符
print('hello\n ruby\\\'ruby\'\\'+"\n") 

#自带\n
puts "hello,","ruby" 

#p方法
p "100",100 #=>"100"\n100

#变量无需数据类型
alphabet="abcdefg"
num=10
al='abcd'

#print与#{变量}
puts "字母表=",alphabet
puts "字母表=#{alphabet}"

#注释
=begin
注释
=end

#控制语句
#if then end
a=10
if a>=10 then #then可以省略
    puts "a>=10"
else
    puts "a<10"
end
#while do end
i=1
while i<10 do #do可以省略
    print i," "
    i+=1
end
#.times do end
3.times do
    puts "张天泽牛逼"
end